package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ActivityRecordDao;
import com.platform.entity.ActivityRecordEntity;
import com.platform.service.ActivityRecordService;

/**
 * 活动抢购记录Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-07-15 10:04:53
 */
@Service("activityRecordService")
public class ActivityRecordServiceImpl implements ActivityRecordService {
    @Autowired
    private ActivityRecordDao activityRecordDao;

    @Override
    public ActivityRecordEntity queryObject(Integer id) {
        return activityRecordDao.queryObject(id);
    }

    @Override
    public List<ActivityRecordEntity> queryList(Map<String, Object> map) {
        return activityRecordDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return activityRecordDao.queryTotal(map);
    }

    @Override
    public int save(ActivityRecordEntity activityRecord) {
        return activityRecordDao.save(activityRecord);
    }

    @Override
    public int update(ActivityRecordEntity activityRecord) {
        return activityRecordDao.update(activityRecord);
    }

    @Override
    public int delete(Integer id) {
        return activityRecordDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return activityRecordDao.deleteBatch(ids);
    }
}
